package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsCategory;
import com.qf.vo.CatVo;

import java.util.List;

/**
 * @author sunyamei
 * @version V1.0
 * @Project javase2203
 * @Package com.qf.service
 * @Description:
 * @Date 2022/7/27 16:02
 *
 * 商品类目表
 *
 * http://localhost:8083/admin/category/list?page=1&limit=20&sort=add_time&order=desc
 */
public interface CategoryService {


    /**
     * 分页查询
     * @param page
     * @param limit
     * @param sort
     * @param order
     * @param id
     * @param name
     * @return
     */
    public IPage<DtsCategory> queryByCategory(Integer page, Integer limit, String sort, String order, Integer id, String name);

    /**
     * 添加
     * @param category
     * @return
     */
    public DtsCategory add(DtsCategory category);


    /**
     * 删除
     * @param category
     */
    public  int  delete(DtsCategory category);


    /**
     * 修改
     * @param category
     * @return
     */
    public  int update(DtsCategory category);

    /**
     * 下拉级联
     * @return
     */
    public List<CatVo> findCat();
}



